import LayoutBase from '@/components/layout/layoutBase.vue'

import activeView from './activeView.vue'
import goodsView from './goodsView.vue'
import packView from './packView.vue'

const router = [
  {
    path: '/operate',
    component: LayoutBase,
    meta: {
      title: '工作台',
    },
    children: [
      {
        path: 'active',
        name: 'operate.active',
        component: activeView,
        meta: {
          title: '活动',
        },
      },
      {
        path: 'pack',
        name: 'operate.pack',
        component: packView,
        meta: {
          title: '积分套餐',
        },
      },
      {
        path: 'goods',
        name: 'operate.goods',
        component: goodsView,
        meta: {
          title: '活动商品',
        },
      },
    ],
  },
]

export default router
